[?php if ($sf_user->hasFlash('info')): ?]
  <div class="info">[?php echo $sf_user->getFlash('info') ?]</div>
[?php endif; ?]

[?php if ($sf_user->hasFlash('notice')): ?]
  <div class="notice">[?php echo $sf_user->getFlash('notice') ?]</div>
[?php endif; ?]

[?php if ($sf_user->hasFlash('error')): ?]
  <div class="error">[?php echo $sf_user->getFlash('error') ?]</div>
[?php endif; ?]
